package org.mwt.ws.xformsservice;

import org.mwt.ws.business.XFormService;
import org.mwt.ws.business.exception.BusinessException;

public class XmlRpcXDBForms {
    private XFormService service;

    public XmlRpcXDBForms() {
        super();
        this.service = XFormService.getInstance();
    }

    public String CreateXForm(String statement) throws BusinessException {
        return this.service.createXForm("xform_test_db", statement);
    }

    public String CreateInsertCode(String statement) throws BusinessException {
        return this.service.createInsertCode(statement);
    }

    public String CreateUpdateCode(String statement) throws BusinessException {
        return this.service.createUpdateCode(statement);
    }
}
